<template>
  <div :class="$style.container">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
export default {
  name: 'guide',
  activated(){
    this.customStyle()
  },
  mounted() {
    this.customStyle()
  },
  methods: {
    customStyle(){
      this.$emit('onCustomStyle',{
        border: 'none',
        overflowY: 'auto',
        background: '#f5f8fb'
      })
    }
  }
}
</script>

<style lang="scss" module>
  .container{
    box-sizing: border-box;
    width:100%;
    height:100%;
    padding-top:22px;
  }
</style>
